{#{% extends 'Base/main.content.lists.div.html.twig' %}#}
{#{% import 'Base/list_item.twig' as listItem %}#}
{% extends 'Back/Sano/list.creator.html.twig' %}
{% import 'Back/Sano/list.item.twig' as listItem %}
{#默认不能删除和新增#}
{#{% block addBtn %}{% endblock %}#}
{#{% block delBtn %}{% endblock %}#}
{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="">{{config.user.label}}</th>
        <th align="" width="">{{config.shop.label}}</th>
        <th align="" width="">{{config.cat1.label}}</th>
        <th align="" width="">{{config.cat2.label}}</th>
        <th align="" width="">{{config.name.label}}</th>
        <th align="" width="">{{config.cover.label}}</th>
        <th align="" width="">{{config.subTitle.label}}</th>
        <th align="" width="">{{config.price.label}}</th>
        <th align="" width="">{{config.unit.label}}</th>
        <th align="" width="">{{config.intro.label}}</th>
        <th align="" width="">{{config.pics.label}}</th>
        <th align="" width="">{{config.statistic.label}}</th>
        <th align="center" width="8%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.id }}"/></span>
            </td>
            <td align='' width='' id='user_{{ Entity.id }}'>
                {{ listItem.text('user',Entity.user,Entity.id) }}
            </td>
            <td align='' width='' id='shop_{{ Entity.id }}'>
                {{ listItem.text('shop',Entity.shop,Entity.id) }}
            </td>
            <td align='' width='' id='cat1_{{ Entity.id }}'>
                {{ listItem.text('cat1',Entity.cat1,Entity.id) }}
            </td>
            <td align='' width='' id='cat2_{{ Entity.id }}'>
                {{ listItem.text('cat2',Entity.cat2,Entity.id) }}
            </td>
            <td align='' width='' id='name_{{ Entity.id }}'>
                {{ listItem.text('name',Entity.name,Entity.id) }}
            </td>
            <td align='' width='' id='cover_{{ Entity.id }}'>
                {{ listItem.pic('cover',Entity.cover,Entity.id) }}
            </td>
            <td align='' width='' id='subTitle_{{ Entity.id }}'>
                {{ listItem.text('subTitle',Entity.subTitle,Entity.id) }}
            </td>
            <td align='' width='' id='price_{{ Entity.id }}'>
                {{ listItem.text('price',Entity.price,Entity.id) }}
            </td>
            <td align='' width='' id='unit_{{ Entity.id }}'>
                {{ listItem.text('unit',Entity.unit,Entity.id) }}
            </td>
            <td align='' width='' id='intro_{{ Entity.id }}'>
                {{ listItem.text('intro',Entity.intro,Entity.id) }}
            </td>
            <td align='' width='' id='pics_{{ Entity.id }}'>
                {{ listItem.pics('pics',Entity.pics,Entity.id) }}
            </td>
            <td align='' width='' id='statistic_{{ Entity.id }}'>
                {{ listItem.text('statistic',Entity.statistic,Entity.id) }}
            </td>
            <td align='' width=''>
                {{ listItem.edit('Product','',Entity.id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

